<?
	class PageCompositionView{
		/**
		 * Metod som returnerar hela sajten som en page
		 * @Param Page $LoginPage Page från LoginControllern
		 * @Param Page $FileUploadPage Page från FileUploadControllern
		 * @return Pageobjekt med kompletta site-strukturen
		 * 
		 * @TODO Separera Doctype/stylesheets/scripts osv.. och innehåll
		 */
		public function RenderWebSite($LoginPage, $FileUploadPage, $RegisterPage){
			$ret = new Page();
			$ret->title = $LoginPage->title;
			
			$ret->body = 
			"
			
<!DOCTYPE HTML>
<html lang='sv'>
<head>
	<meta charset='utf-8' />

	<title>$LoginPage->title</title>
	<link rel='stylesheet' href='css/style.css' />
	<link rel='stylesheet' href='css/lightbox.css' type='text/css' media='screen' />
	
	<script type='text/javascript' src='js/prototype.js'></script>
	<script type='text/javascript' src='js/scriptaculous.js?load=effects,builder'></script>
	<script type='text/javascript' src='js/lightbox.js'></script>
</head>
<body>
	<header id='banner' class='body'>
		<h1><a href='index.php' title='Hem'>blog.</a></h1>
		<div id='login'>
			$LoginPage->body
		</div>
	<nav class='block'>
		<ul>
			<li><a href='#'>Start</a></li>
			<li><a href='#'>Blog</a></li>
			<li><a href='#'>Inställnignar</a></li>
		</ul>
	</nav>
	</header>
	<aside id='feat' class='body'>
		<article class='block'>
			<figure>
				<img src='http://placekitten.com/230/150' alt='bild' />
			</figure>
			<H2>Stay a while and listen..</H2>
			<blockquote>'<strong>Microblogging</strong> is a broadcast medium in the form of blogging. 
				A microblog differs from a traditional blog in that its content is typically smaller in both actual and aggregate file size. 
				Microblogs 'allow users to exchange small elements of content such as short sentences, individual images, or video links'</p>
				<footer>- Wikipedia</footer>
			</blockquote>
		</article>
	</aside>
	<!-- Innehåll -->
		<section id='upload' class='body'>
			<article class='block'>
				$FileUploadPage->body
			</article>
		</section>
		$RegisterPage->body
	<footer class='body'>		
	</footer>
</body>
</html>";

	return $ret;
		}
	}
